package com.example.demo.service.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.demo.mapper.SysRoleMenuMapper;
import java.util.List;
import com.example.demo.domain.SysRoleMenuExample;
import com.example.demo.domain.SysRoleMenu;
import com.example.demo.service.SysRoleMenuService;
@Service
public class SysRoleMenuServiceImpl implements SysRoleMenuService{

    @Resource
    private SysRoleMenuMapper sysRoleMenuMapper;

    @Override
    public long countByExample(SysRoleMenuExample example) {
        return sysRoleMenuMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SysRoleMenuExample example) {
        return sysRoleMenuMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long roleId,Long menuId) {
        return sysRoleMenuMapper.deleteByPrimaryKey(roleId,menuId);
    }

    @Override
    public int insert(SysRoleMenu record) {
        return sysRoleMenuMapper.insert(record);
    }

    @Override
    public int insertSelective(SysRoleMenu record) {
        return sysRoleMenuMapper.insertSelective(record);
    }

    @Override
    public List<SysRoleMenu> selectByExample(SysRoleMenuExample example) {
        return sysRoleMenuMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(SysRoleMenu record,SysRoleMenuExample example) {
        return sysRoleMenuMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SysRoleMenu record,SysRoleMenuExample example) {
        return sysRoleMenuMapper.updateByExample(record,example);
    }

}
